<template>
    <div class="header">
        <div class="dataServiceSystem">数据服务系统</div>
        <div class="systemLogin-logout">
            <!-- <div class="inputContent">
                <el-input
                    suffix-icon="el-icon-search"
                    placeholder="请输入内容"
                    v-model="input4">
                </el-input>
            </div> -->
            <div class="userCenter" @mouseenter="accountEnterEvent" @mouseleave="accountLeaveEvent">
                Admin
                <!-- <account-information v-show="account"></account-information> -->
            </div>
            <!-- <div class="userMessage" @mouseenter="messageEnterEvent" @mouseleave="messageLeaveEvent">
                <el-badge :value="12" class="item">
                    <el-button size="small">消息</el-button>
                </el-badge>
                <message v-show="message"></message>
            </div> -->
            <!-- <div>设置</div> -->
            <div @click="exitEvent">退出</div>
        </div>
    </div>
</template>

<script>
import message from '@/components/AuctionPlatform/MessageSetup/message.vue'
import accountInformation from '@/components/AuctionPlatform/AccountInformation/account-information.vue'
export default {
    components:{
        message,
        accountInformation
    },
    data(){
        return {
            message:false,
            account:false,
            input4:""
        }
    },
    methods:{
        messageEnterEvent:function () {
            this.message = true
        },
        messageLeaveEvent:function () {
            this.message = false
        },
        accountEnterEvent:function () {
            this.account = true
        },
        accountLeaveEvent:function () {
            this.account = false
        },
        exitEvent() {
            sessionStorage.clear();
            this.$router.replace({
                path:'/login'
            })
        }
    }
}
</script>

<style lang="less" scoped>
.header{
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    box-shadow: 3px 3px 9px #bdbdbd;
    .dataServiceSystem{
        height: 100%;
        width: 200px;
        background: rgba(51, 51, 51, 1);
        text-align: center;
        line-height: 80px;
        font-size: 20px;
        font-weight: bold;
        color: #c7c7c7;
    }
    .systemLogin-logout{
        height: calc(100% - 200px);
        display: flex;
        align-items: center;
        justify-content: end;
        width: calc(100% - 220px);
        background: rgb(255, 255, 255);
        padding-right: 20px;
        div{
            height: 100%;
            margin-right: 20px;
            cursor: pointer;
        }
        div:nth-child(1){
            width: 50px;
            display: flex;
            align-items: center;
        }
        .userCenter{
            width: 50px;
            margin-right: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            top: 3px;
        }
        .userMessage{
            width: 70px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
            color: #5b5b5b;
            position: relative;
            top: 5px;
        }
        div:nth-child(2){
            width: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
            color: #5b5b5b;
        }
        div:nth-child(3){
            width: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
            color: #5b5b5b;
            margin-right: 10px;
        }
    }
}
</style>